<include file="Index:header"/>
<import file="Common.uploadify.uploadify" type="css"/>
<import file="Common.uploadify.jquery#uploadify#min"/>
<style>
.banner-img {
	width:120px;
	height:auto;
}
</style>
<div id="content" class="container_16 clearfix">
	<div class="btn-toolbar">
		<a class="btn" href="#">
			<i class="icon-plus"></i>
			<span>添加图片</span>
			
		</a>
		
	</div>
	<div id="uploadHolder"></div>
	
	<div class="well">
			<table class="table">
				<thead>
					<tr>
						<th>图片</th>
						<th>路径</th>
						<th>删除</th>
					</tr>
				</thead>
				<volist name="banners" id="banner">
					<tr>
						<td><img src="<empty name='banner.thumb'>{$banner.path}<else />{$banner.thumb}</empty>" class="img-polaroid banner-img" /></td>
						<td>{$banner.path}</td>
						<td>
							
							<a href="#myModal" role="button" data-toggle="modal"><i
							class="icon-remove"></i></a> 
						</td>
					</tr>
				</volist>			
			</table>
		
	</div>
</div>
<script type="text/javascript">
$(function() {
    $("#file_upload").uploadify({
        'debug'    : true,
        'swf'      : '__PUBLIC__/Common/uploadify/uploadify.swf',
        'uploader' : '{:U("Admin/Banner/add")}'
    });
});
</script>
<include file="Public:confirm" />
<include file="Index:footer"/>